<?php

namespace app\api\model;

use think\Model;

class SensitiveWord extends Model {
    protected $name = 'sensitive_word';
    protected $createTime = 'create_at';
    protected $updateTime = 'update_at';

    const ID = 'id';
    const SID = 'sid';
    const NAME = 'name';
    const CREATE_TIME = 'create_time';
    const UPDATE_TIME = 'update_time';

    public function sensitive() {
    	return $this->hasOne(Sensitive::class, 'id', self::SID);
    }
}
